package com.ruoyi.school.domain;

import lombok.Data;
import lombok.experimental.Accessors;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 消息维护对象 school_news
 * 
 * @author ruoyi
 * @date 2024-04-15
 */
@Data
@Accessors(chain = true)

public class SchoolNews extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 内容 */
    @Excel(name = "内容")
    private String content;

    /** 0所有 */
    @Excel(name = "0所有")
    private String toUser;

    /** 1关闭 0正常 */
    @Excel(name = "1关闭 0正常")
    private String status;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setContent(String content)
    {
        this.content = content;
    }

    public String getContent()
    {
        return content;
    }
    public void setToUser(String toUser)
    {
        this.toUser = toUser;
    }

    public String getToUser()
    {
        return toUser;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("content", getContent())
            .append("createTime", getCreateTime())
            .append("toUser", getToUser())
            .append("status", getStatus())
            .toString();
    }
}
